package phoenix.web.locators.flirt;

import org.openqa.selenium.By;

import phoenix.web.locators.base.SearchPageLocatorsBase;

/**
 * Index page locators for Flirt
 */
public class SearchPageLocators extends SearchPageLocatorsBase
{
	/**
	 * Overrides specific locators
	 */
	public SearchPageLocators()
	{
		imgSiteLogo = By.xpath("//a[@class='b-logo']");
		blockUserMenuPhoto = By.id("userNavPhoto");
		blockSearchMenu = By.id("userListSort");
		linkSearchOnline = By.xpath("//a[@data-item='online']");
		linkSearchNear = By.xpath("//a[@data-item='near_you']");
		linkSearchRecently = By.xpath("//a[@data-item='new_members']");

		blockUsersListActivity = By.xpath("//*[@id='userListContainer']//li");
		blockSearchResults = By.id("userListContainer");
		blockBannerUpgrade = By.xpath("//*[@id='userListContainer']//*[@class='upgrade-banner']");
		btnBanner = By.xpath("//*[@id='userListContainer']//*[@class='upgrade-banner']//a");
		btnClosePopupAlert = By.xpath("//button[@class='btn-meta btn-close']");

		blockAdvancedSearch = By.id("searchToolbar");
		selectAgeFrom = By.id("search-form-age-from");
		selectAgeTo = By.id("search-form-age-to");
		selectLocation = By.xpath("//input[@id='search-form-display-location']");

		optionRadius50 = By.xpath("//button[@data-list-item='50']");
		optionRadius20 = By.xpath("//button[@data-list-item='20']");
		optionRadius100 = By.xpath("//button[@data-list-item='100']");

		btnSearch = By.id("searchFormSubmit");

		imgProfile = By.cssSelector("img.photo");
		blockUserList = By.id("userListContainer");
		txtUserSreenname = By.cssSelector("span.screenname");
		txtUserListAge = By.xpath(".//h2[@class='b-screenname']/*[contains(@class,'gender')]");
		txtUserCounty = By.cssSelector("div.location");
		imgProfile = By.cssSelector("img.photo");

		blockUserListItem = By.cssSelector("div.b-user");

		linkSMSChat = By.cssSelector(".site-nav-item.site-nav-smschat");

		// Pop-up alerts
		blockMessageAlert = By.xpath("//div[@class='notification-popup b-popup active mail']");
		blockWinkAlert = By.xpath("//div[@class='notification-popup b-popup active wink']");
		blockBrowseAlert = By.xpath("//div[@class='notification-popup b-popup active view']");

		// Counters
		blockMessagedMeCounter = By.xpath("//span[@data-counter='mail']");
		blockBrowsedMeCounter = By.xpath("//span[@data-counter='view']");
		blockWinkedMeCounter = By.xpath("//span[@data-counter='wink']");
		blockFavoritsCounter = By.xpath("//span[@data-counter='favourite']");
		blockNewsFeedsCounter = By.xpath("//span[@data-counter='newsFeed']");

		linkTopMyFriends = By.xpath("//div[@id='site-nav']//a[contains(@class,'site-nav-favorites')]");
		linkTopBrowsedMe = By.xpath("//div[@id='site-nav']//a[contains(@class,'site-nav-views')]");
		linkTopMessagedMe = By.cssSelector("a.site-nav-item.site-nav-messenger");
		linkTopWinkedMe = By.xpath("//div[@id='site-nav']//a[contains(@class,'site-nav-winks')]");
		linkTopFeed = By.xpath("//div[@id='site-nav']//a[contains(@class,'site-nav-newsfeed')]");
		linkTopChatRoom = By.xpath("//div[@id='site-nav']//a[contains(@class,'rooms')]");

		blockDropMenu = By.xpath("//div[@class='b-dropdown-menu active']");

		// buttons at user profile
		btnUserMessenger = By.cssSelector("button.btn-activity.btn-message");
		blockSMSChatHistory = By.cssSelector(".b-dropdown-menu.active");
		linkViewMoreActivitySMSChat = By.xpath("(//*[@data-activity='smsChatFeed']//a)[last()]");
		selectLocationValue = By.xpath("//input[@id='suggest-location-value']");

	}

}
